package hjw.com.service;

import hjw.com.dao.LargeFileMapper;
import hjw.com.entity.LargeFile;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>Project:Academic - LargeFileServiceImpl
 *
 * @author IvanWei玮 -- maste
 * @version 1.0
 * @DataTime 2025/1/21 17:30
 * @since 1.8
 */
@Service
public class LargeFileServiceImpl implements LargeFileService{
    private final LargeFileMapper largeFileMapper;

    @Autowired(required = false)
    public LargeFileServiceImpl(LargeFileMapper largeFileMapper) {
        this.largeFileMapper = largeFileMapper;
    }

    @Override
    public int add(LargeFile largefile) {
        return largeFileMapper.add(largefile);
    }

    @Override
    public LargeFile findOne(String id) {
        return largeFileMapper.findOne(id);
    }

    @Override
    public int delete(String id) {
        return largeFileMapper.delete(id);
    }
}
